<script type="text/javascript">
function zoommenu(obj) {
    var h = obj.parentNode.childNodes[(is_ie ? 0 : 1)].childNodes[0];
    var ul = obj.parentNode.childNodes[(is_ie ? 1 : 3)];
    if(ul.style.display == 'none') {
        ul.style.display = 'block';
        h.className = 'collapse';
    } else {
        ul.style.display = 'none';
        h.className = 'expand';
    }
}
</script>
<div class="my_menus">
    <!--{loop $assmenus $key $val}-->
    <div>
        <h1 onclick="zoommenu(this);"><span class="collapse">$val</span></h1>
        <ul>
        <!--{loop $$key $s_key $s_val}-->
            <li><a href="index.php?ac=$s_key">$s_val</a></li>
        <!--{/loop}-->
        </ul>
    </div>
    <!--{/loop}-->
</div>